package com.leaves.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author Chenweiwei
 * @Date 2021/6/7 17:26
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "project.thread")
@Component
@Data
public class ThreadProperties {


    private Integer corePoolSize;

    private Integer maximumPoolSize;

    private Integer keepAliveTime;

    // 队列最大长度
    private int queueCapacity = 1000;

}
